fis-component 0.0.13 → 0.0.14

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.
package/dist/esm/index.js CHANGED
@@ -1,12 +1,9 @@
1
- import * as React$1 from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import * as React from 'react';
2
3
  import React__default, { version as version$2, isValidElement, useContext, createContext, useRef, useLayoutEffect as useLayoutEffect$1, useEffect, forwardRef, useMemo as useMemo$1, useState, Children, createRef } from 'react';
3
4
  import * as ReactDOM from 'react-dom';
4
5
  import ReactDOM__default from 'react-dom';
5
6
 
6
- const MyComponent = () => {
7
- return React.createElement("div", null, "Hello from my React component!");
8
- };
9
-
10
7
  function getDefaultExportFromCjs (x) {
11
8
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
12
9
  }
@@ -525,7 +522,7 @@ function findDOMNode(node) {
525
522
  }
526
523
 
527
524
  function useMemo(getValue, condition, shouldUpdate) {
528
- var cacheRef = React$1.useRef({});
525
+ var cacheRef = React.useRef({});
529
526
  if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
530
527
  cacheRef.current.value = getValue();
531
528
  cacheRef.current.condition = condition;
@@ -1187,7 +1184,7 @@ function createCache() {
1187
1184
  }
1188
1185
  return new Entity(cssinjsInstanceId);
1189
1186
  }
1190
- var StyleContext = /*#__PURE__*/React$1.createContext({
1187
+ var StyleContext = /*#__PURE__*/React.createContext({
1191
1188
  hashPriority: 'low',
1192
1189
  cache: createCache(),
1193
1190
  defaultCache: true
@@ -1500,9 +1497,9 @@ var transformToken = function transformToken(token, themeKey, config) {
1500
1497
  /**
1501
1498
  * Wrap `React.useLayoutEffect` which will not throw warning message in test env
1502
1499
  */
1503
- var useInternalLayoutEffect = process.env.NODE_ENV !== 'test' && canUseDom() ? React$1.useLayoutEffect : React$1.useEffect;
1500
+ var useInternalLayoutEffect = process.env.NODE_ENV !== 'test' && canUseDom() ? React.useLayoutEffect : React.useEffect;
1504
1501
  var useLayoutEffect = function useLayoutEffect(callback, deps) {
1505
- var firstMountRef = React$1.useRef(true);
1502
+ var firstMountRef = React.useRef(true);
1506
1503
  useInternalLayoutEffect(function () {
1507
1504
  return callback(firstMountRef.current);
1508
1505
  }, deps);
@@ -1518,7 +1515,7 @@ var useLayoutEffect = function useLayoutEffect(callback, deps) {
1518
1515
 
1519
1516
  // We need fully clone React function here
1520
1517
  // to avoid webpack warning React 17 do not export `useId`
1521
- var fullClone$3 = _objectSpread2({}, React$1);
1518
+ var fullClone$3 = _objectSpread2({}, React);
1522
1519
  var useInsertionEffect$1 = fullClone$3.useInsertionEffect;
1523
1520
  /**
1524
1521
  * Polyfill `useInsertionEffect` for React < 18
@@ -1527,7 +1524,7 @@ var useInsertionEffect$1 = fullClone$3.useInsertionEffect;
1527
1524
  * @param deps
1528
1525
  */
1529
1526
  var useInsertionEffectPolyfill = function useInsertionEffectPolyfill(renderEffect, effect, deps) {
1530
- React$1.useMemo(renderEffect, deps);
1527
+ React.useMemo(renderEffect, deps);
1531
1528
  useLayoutEffect(function () {
1532
1529
  return effect(true);
1533
1530
  }, deps);
@@ -1546,7 +1543,7 @@ var useCompatibleInsertionEffect = useInsertionEffect$1 ? function (renderEffect
1546
1543
  } : useInsertionEffectPolyfill;
1547
1544
  var useCompatibleInsertionEffect$1 = useCompatibleInsertionEffect;
1548
1545
 
1549
- var fullClone$2 = _objectSpread2({}, React$1);
1546
+ var fullClone$2 = _objectSpread2({}, React);
1550
1547
  var useInsertionEffect = fullClone$2.useInsertionEffect;
1551
1548
 
1552
1549
  // DO NOT register functions in useEffect cleanup function, or functions that registered will never be called.
@@ -1562,7 +1559,7 @@ var useCleanupRegister = function useCleanupRegister(deps) {
1562
1559
  }
1563
1560
  effectCleanups.push(fn);
1564
1561
  }
1565
- React$1.useEffect(function () {
1562
+ React.useEffect(function () {
1566
1563
  // Compatible with strict mode
1567
1564
  cleanupFlag = false;
1568
1565
  return function () {
@@ -1614,7 +1611,7 @@ if (process.env.NODE_ENV !== 'production' && typeof module !== 'undefined' && mo
1614
1611
  function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove,
1615
1612
  // Add additional effect trigger by `useInsertionEffect`
1616
1613
  onCacheEffect) {
1617
- var _React$useContext = React$1.useContext(StyleContext$1),
1614
+ var _React$useContext = React.useContext(StyleContext$1),
1618
1615
  globalCache = _React$useContext.cache;
1619
1616
  var fullPath = [prefix].concat(_toConsumableArray(keyPath));
1620
1617
  var fullPathStr = pathKey(fullPath);
@@ -1643,7 +1640,7 @@ onCacheEffect) {
1643
1640
  };
1644
1641
 
1645
1642
  // Create cache
1646
- React$1.useMemo(function () {
1643
+ React.useMemo(function () {
1647
1644
  buildCache();
1648
1645
  }, /* eslint-disable react-hooks/exhaustive-deps */
1649
1646
  [fullPathStr]
@@ -2736,7 +2733,7 @@ function useStyleRegister(info, styleFn) {
2736
2733
  clientOnly = info.clientOnly,
2737
2734
  _info$order = info.order,
2738
2735
  order = _info$order === void 0 ? 0 : _info$order;
2739
- var _React$useContext = React$1.useContext(StyleContext$1),
2736
+ var _React$useContext = React.useContext(StyleContext$1),
2740
2737
  autoClear = _React$useContext.autoClear,
2741
2738
  mock = _React$useContext.mock,
2742
2739
  defaultCache = _React$useContext.defaultCache,
@@ -2870,15 +2867,15 @@ function useStyleRegister(info, styleFn) {
2870
2867
  return function (node) {
2871
2868
  var styleNode;
2872
2869
  if (!ssrInline || isMergedClientSide || !defaultCache) {
2873
- styleNode = /*#__PURE__*/React$1.createElement(Empty, null);
2870
+ styleNode = /*#__PURE__*/React.createElement(Empty, null);
2874
2871
  } else {
2875
- styleNode = /*#__PURE__*/React$1.createElement("style", _extends({}, _defineProperty(_defineProperty({}, ATTR_TOKEN, cachedTokenKey), ATTR_MARK, cachedStyleId), {
2872
+ styleNode = /*#__PURE__*/React.createElement("style", _extends({}, _defineProperty(_defineProperty({}, ATTR_TOKEN, cachedTokenKey), ATTR_MARK, cachedStyleId), {
2876
2873
  dangerouslySetInnerHTML: {
2877
2874
  __html: cachedStyleStr
2878
2875
  }
2879
2876
  }));
2880
2877
  }
2881
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, styleNode, node);
2878
+ return /*#__PURE__*/React.createElement(React.Fragment, null, styleNode, node);
2882
2879
  };
2883
2880
  }
2884
2881
  var extract$1 = function extract(cache, effectStyles, options) {
@@ -3069,7 +3066,6 @@ function noSplit(list) {
3069
3066
  });
3070
3067
 
3071
3068
  var IconContext = /*#__PURE__*/createContext({});
3072
- var Context$1 = IconContext;
3073
3069
 
3074
3070
  function _toArray(r) {
3075
3071
  return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
@@ -3181,7 +3177,7 @@ if (process.env.NODE_ENV !== 'production') {
3181
3177
  }
3182
3178
  };
3183
3179
  }
3184
- const WarningContext = /*#__PURE__*/React$1.createContext({});
3180
+ const WarningContext = /*#__PURE__*/React.createContext({});
3185
3181
  /**
3186
3182
  * This is a hook but we not named as `useWarning`
3187
3183
  * since this is only used in development.
@@ -3190,7 +3186,7 @@ const WarningContext = /*#__PURE__*/React$1.createContext({});
3190
3186
  const devUseWarning = process.env.NODE_ENV !== 'production' ? component => {
3191
3187
  const {
3192
3188
  strict
3193
- } = React$1.useContext(WarningContext);
3189
+ } = React.useContext(WarningContext);
3194
3190
  const typeWarning = (valid, type, message) => {
3195
3191
  if (!valid) {
3196
3192
  if (strict === false && type === 'deprecated') {
@@ -3282,7 +3278,6 @@ const locale$1 = {
3282
3278
  placeholder: 'Select time',
3283
3279
  rangePlaceholder: ['Start time', 'End time']
3284
3280
  };
3285
- var TimePicker = locale$1;
3286
3281
 
3287
3282
  // Merge into a locale object
3288
3283
  const locale = {
@@ -3298,20 +3293,17 @@ const locale = {
3298
3293
  rangeMonthPlaceholder: ['Start month', 'End month'],
3299
3294
  rangeWeekPlaceholder: ['Start week', 'End week']
3300
3295
  }, locale$2),
3301
- timePickerLocale: Object.assign({}, TimePicker)
3296
+ timePickerLocale: Object.assign({}, locale$1)
3302
3297
  };
3303
- // All settings at:
3304
- // https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
3305
- var enUS = locale;
3306
3298
 
3307
3299
  /* eslint-disable no-template-curly-in-string */
3308
3300
  const typeTemplate = '${label} is not a valid ${type}';
3309
3301
  const localeValues = {
3310
3302
  locale: 'en',
3311
3303
  Pagination: locale$3,
3312
- DatePicker: enUS,
3313
- TimePicker,
3314
- Calendar: enUS,
3304
+ DatePicker: locale,
3305
+ TimePicker: locale$1,
3306
+ Calendar: locale,
3315
3307
  global: {
3316
3308
  placeholder: 'Please select'
3317
3309
  },
@@ -3446,11 +3438,10 @@ const localeValues = {
3446
3438
  gradientColor: 'Gradient'
3447
3439
  }
3448
3440
  };
3449
- var defaultLocale = localeValues;
3450
3441
 
3451
- Object.assign({}, defaultLocale.Modal);
3442
+ Object.assign({}, localeValues.Modal);
3452
3443
  let localeList = [];
3453
- const generateLocale = () => localeList.reduce((merged, locale) => Object.assign(Object.assign({}, merged), locale), defaultLocale.Modal);
3444
+ const generateLocale = () => localeList.reduce((merged, locale) => Object.assign(Object.assign({}, merged), locale), localeValues.Modal);
3454
3445
  function changeConfirmLocale(newLocale) {
3455
3446
  if (newLocale) {
3456
3447
  const cloneLocale = Object.assign({}, newLocale);
@@ -3461,11 +3452,10 @@ function changeConfirmLocale(newLocale) {
3461
3452
  generateLocale();
3462
3453
  };
3463
3454
  }
3464
- Object.assign({}, defaultLocale.Modal);
3455
+ Object.assign({}, localeValues.Modal);
3465
3456
  }
3466
3457
 
3467
3458
  const LocaleContext = /*#__PURE__*/createContext(undefined);
3468
- var LocaleContext$1 = LocaleContext;
3469
3459
 
3470
3460
  const ANT_MARK = 'internalMark';
3471
3461
  const LocaleProvider = props => {
@@ -3478,21 +3468,20 @@ const LocaleProvider = props => {
3478
3468
  const warning = devUseWarning('LocaleProvider');
3479
3469
  process.env.NODE_ENV !== "production" ? warning(_ANT_MARK__ === ANT_MARK, 'deprecated', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale') : void 0;
3480
3470
  }
3481
- React$1.useEffect(() => {
3471
+ React.useEffect(() => {
3482
3472
  const clearLocale = changeConfirmLocale(locale === null || locale === void 0 ? void 0 : locale.Modal);
3483
3473
  return clearLocale;
3484
3474
  }, [locale]);
3485
- const getMemoizedContextValue = React$1.useMemo(() => Object.assign(Object.assign({}, locale), {
3475
+ const getMemoizedContextValue = React.useMemo(() => Object.assign(Object.assign({}, locale), {
3486
3476
  exist: true
3487
3477
  }), [locale]);
3488
- return /*#__PURE__*/React$1.createElement(LocaleContext$1.Provider, {
3478
+ return /*#__PURE__*/React.createElement(LocaleContext.Provider, {
3489
3479
  value: getMemoizedContextValue
3490
3480
  }, children);
3491
3481
  };
3492
3482
  if (process.env.NODE_ENV !== 'production') {
3493
3483
  LocaleProvider.displayName = 'LocaleProvider';
3494
3484
  }
3495
- var LocaleProvider$1 = LocaleProvider;
3496
3485
 
3497
3486
  /**
3498
3487
  * Take input from [0, n] and return it as [0, 1]
@@ -4917,7 +4906,6 @@ const seedToken = Object.assign(Object.assign({}, defaultPresetColors), {
4917
4906
  // Motion
4918
4907
  motion: true
4919
4908
  });
4920
- var seedToken$1 = seedToken;
4921
4909
 
4922
4910
  function genColorMapToken(seed, _ref) {
4923
4911
  let {
@@ -5047,7 +5035,6 @@ const genRadius = radiusBase => {
5047
5035
  borderRadiusOuter: radiusOuter
5048
5036
  };
5049
5037
  };
5050
- var genRadius$1 = genRadius;
5051
5038
 
5052
5039
  function genCommonMapToken(token) {
5053
5040
  const {
@@ -5063,7 +5050,7 @@ function genCommonMapToken(token) {
5063
5050
  motionDurationSlow: `${(motionBase + motionUnit * 3).toFixed(1)}s`,
5064
5051
  // line
5065
5052
  lineWidthBold: lineWidth + 1
5066
- }, genRadius$1(borderRadius));
5053
+ }, genRadius(borderRadius));
5067
5054
  }
5068
5055
 
5069
5056
  const genControlHeight = token => {
@@ -5076,7 +5063,6 @@ const genControlHeight = token => {
5076
5063
  controlHeightLG: controlHeight * 1.25
5077
5064
  };
5078
5065
  };
5079
- var genControlHeight$1 = genControlHeight;
5080
5066
 
5081
5067
  function getLineHeight(fontSize) {
5082
5068
  return (fontSize + 8) / fontSize;
@@ -5130,7 +5116,6 @@ const genFontMapToken = fontSize => {
5130
5116
  lineHeightHeading5: lineHeights[2]
5131
5117
  };
5132
5118
  };
5133
- var genFontMapToken$1 = genFontMapToken;
5134
5119
 
5135
5120
  function genSizeMapToken(token) {
5136
5121
  const {
@@ -5225,16 +5210,16 @@ function derivative(token) {
5225
5210
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, token), colorPalettes), genColorMapToken(token, {
5226
5211
  generateColorPalettes,
5227
5212
  generateNeutralColorPalettes
5228
- })), genFontMapToken$1(token.fontSize)), genSizeMapToken(token)), genControlHeight$1(token)), genCommonMapToken(token));
5213
+ })), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));
5229
5214
  }
5230
5215
 
5231
5216
  const defaultTheme = createTheme(derivative);
5232
5217
  // ================================ Context =================================
5233
5218
  // To ensure snapshot stable. We disable hashed in test env.
5234
5219
  const defaultConfig = {
5235
- token: seedToken$1,
5220
+ token: seedToken,
5236
5221
  override: {
5237
- override: seedToken$1
5222
+ override: seedToken
5238
5223
  },
5239
5224
  hashed: true
5240
5225
  };
@@ -5249,7 +5234,7 @@ const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
5249
5234
  return suffixCls ? `${defaultPrefixCls}-${suffixCls}` : defaultPrefixCls;
5250
5235
  };
5251
5236
  // zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.
5252
- const ConfigContext = /*#__PURE__*/React$1.createContext({
5237
+ const ConfigContext = /*#__PURE__*/React.createContext({
5253
5238
  // We provide a default function for Context without provider
5254
5239
  getPrefixCls: defaultGetPrefixCls,
5255
5240
  iconPrefixCls: defaultIconPrefixCls
@@ -5327,35 +5312,33 @@ function registerTheme(globalPrefixCls, theme) {
5327
5312
  }
5328
5313
  }
5329
5314
 
5330
- const DisabledContext = /*#__PURE__*/React$1.createContext(false);
5315
+ const DisabledContext = /*#__PURE__*/React.createContext(false);
5331
5316
  const DisabledContextProvider = _ref => {
5332
5317
  let {
5333
5318
  children,
5334
5319
  disabled
5335
5320
  } = _ref;
5336
- const originDisabled = React$1.useContext(DisabledContext);
5337
- return /*#__PURE__*/React$1.createElement(DisabledContext.Provider, {
5321
+ const originDisabled = React.useContext(DisabledContext);
5322
+ return /*#__PURE__*/React.createElement(DisabledContext.Provider, {
5338
5323
  value: disabled !== null && disabled !== void 0 ? disabled : originDisabled
5339
5324
  }, children);
5340
5325
  };
5341
- var DisabledContext$1 = DisabledContext;
5342
5326
 
5343
- const SizeContext = /*#__PURE__*/React$1.createContext(undefined);
5327
+ const SizeContext = /*#__PURE__*/React.createContext(undefined);
5344
5328
  const SizeContextProvider = _ref => {
5345
5329
  let {
5346
5330
  children,
5347
5331
  size
5348
5332
  } = _ref;
5349
- const originSize = React$1.useContext(SizeContext);
5350
- return /*#__PURE__*/React$1.createElement(SizeContext.Provider, {
5333
+ const originSize = React.useContext(SizeContext);
5334
+ return /*#__PURE__*/React.createElement(SizeContext.Provider, {
5351
5335
  value: size || originSize
5352
5336
  }, children);
5353
5337
  };
5354
- var SizeContext$1 = SizeContext;
5355
5338
 
5356
5339
  function useConfig() {
5357
- const componentDisabled = useContext(DisabledContext$1);
5358
- const componentSize = useContext(SizeContext$1);
5340
+ const componentDisabled = useContext(DisabledContext);
5341
+ const componentSize = useContext(SizeContext);
5359
5342
  return {
5360
5343
  componentDisabled,
5361
5344
  componentSize
@@ -5550,9 +5533,9 @@ var getCompVarPrefix = function getCompVarPrefix(component, prefix) {
5550
5533
  };
5551
5534
 
5552
5535
  function useEvent(callback) {
5553
- var fnRef = React$1.useRef();
5536
+ var fnRef = React.useRef();
5554
5537
  fnRef.current = callback;
5555
- var memoFn = React$1.useCallback(function () {
5538
+ var memoFn = React.useCallback(function () {
5556
5539
  var _fnRef$current;
5557
5540
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5558
5541
  args[_key] = arguments[_key];
@@ -5568,12 +5551,12 @@ function useEvent(callback) {
5568
5551
  * Developer should confirm it's safe to ignore themselves.
5569
5552
  */
5570
5553
  function useSafeState(defaultValue) {
5571
- var destroyRef = React$1.useRef(false);
5572
- var _React$useState = React$1.useState(defaultValue),
5554
+ var destroyRef = React.useRef(false);
5555
+ var _React$useState = React.useState(defaultValue),
5573
5556
  _React$useState2 = _slicedToArray(_React$useState, 2),
5574
5557
  value = _React$useState2[0],
5575
5558
  setValue = _React$useState2[1];
5576
- React$1.useEffect(function () {
5559
+ React.useEffect(function () {
5577
5560
  destroyRef.current = false;
5578
5561
  return function () {
5579
5562
  destroyRef.current = true;
@@ -6108,7 +6091,7 @@ function formatToken(derivativeToken) {
6108
6091
  } = derivativeToken,
6109
6092
  restToken = __rest$4(derivativeToken, ["override"]);
6110
6093
  const overrideTokens = Object.assign({}, override);
6111
- Object.keys(seedToken$1).forEach(token => {
6094
+ Object.keys(seedToken).forEach(token => {
6112
6095
  delete overrideTokens[token];
6113
6096
  });
6114
6097
  const mergedToken = Object.assign(Object.assign({}, restToken), overrideTokens);
@@ -6361,7 +6344,7 @@ function useToken() {
6361
6344
  } = React__default.useContext(DesignTokenContext);
6362
6345
  const salt = `${version$1}-${hashed || ''}`;
6363
6346
  const mergedTheme = theme || defaultTheme;
6364
- const [token, hashId, realToken] = useCacheToken(mergedTheme, [seedToken$1, rootDesignToken], {
6347
+ const [token, hashId, realToken] = useCacheToken(mergedTheme, [seedToken, rootDesignToken], {
6365
6348
  salt,
6366
6349
  override,
6367
6350
  getComputedToken,
@@ -6482,7 +6465,6 @@ const useResetIconStyle = (iconPrefixCls, csp) => {
6482
6465
  })
6483
6466
  }]);
6484
6467
  };
6485
- var useStyle$2 = useResetIconStyle;
6486
6468
 
6487
6469
  const {
6488
6470
  genStyleHooks,
@@ -6516,7 +6498,7 @@ const {
6516
6498
  iconPrefixCls
6517
6499
  } = useContext(ConfigContext);
6518
6500
  // Generate style for icons
6519
- useStyle$2(iconPrefixCls, csp);
6501
+ useResetIconStyle(iconPrefixCls, csp);
6520
6502
  return csp !== null && csp !== void 0 ? csp : {};
6521
6503
  },
6522
6504
  getResetStyles: token => [{
@@ -6526,13 +6508,12 @@ const {
6526
6508
  getCompUnitless: () => unitless
6527
6509
  });
6528
6510
 
6529
- const fullClone$1 = Object.assign({}, React$1);
6511
+ const fullClone$1 = Object.assign({}, React);
6530
6512
  const {
6531
6513
  useId
6532
6514
  } = fullClone$1;
6533
6515
  const useEmptyId = () => '';
6534
6516
  const useThemeKey = typeof useId === 'undefined' ? useEmptyId : useId;
6535
- var useThemeKey$1 = useThemeKey;
6536
6517
 
6537
6518
  function useTheme(theme, parentTheme, config) {
6538
6519
  var _a, _b;
@@ -6542,7 +6523,7 @@ function useTheme(theme, parentTheme, config) {
6542
6523
  hashed: (_a = parentTheme === null || parentTheme === void 0 ? void 0 : parentTheme.hashed) !== null && _a !== void 0 ? _a : defaultConfig.hashed,
6543
6524
  cssVar: parentTheme === null || parentTheme === void 0 ? void 0 : parentTheme.cssVar
6544
6525
  }) : parentTheme;
6545
- const themeKey = useThemeKey$1();
6526
+ const themeKey = useThemeKey();
6546
6527
  if (process.env.NODE_ENV !== 'production') {
6547
6528
  const cssVarEnabled = themeConfig.cssVar || parentThemeConfig.cssVar;
6548
6529
  const validKey = !!(typeof themeConfig.cssVar === 'object' && ((_b = themeConfig.cssVar) === null || _b === void 0 ? void 0 : _b.key) || themeKey);
@@ -6577,11 +6558,11 @@ function useTheme(theme, parentTheme, config) {
6577
6558
  }
6578
6559
 
6579
6560
  var _excluded$3 = ["children"];
6580
- var Context = /*#__PURE__*/React$1.createContext({});
6561
+ var Context = /*#__PURE__*/React.createContext({});
6581
6562
  function MotionProvider(_ref) {
6582
6563
  var children = _ref.children,
6583
6564
  props = _objectWithoutProperties(_ref, _excluded$3);
6584
- return /*#__PURE__*/React$1.createElement(Context.Provider, {
6565
+ return /*#__PURE__*/React.createElement(Context.Provider, {
6585
6566
  value: props
6586
6567
  }, children);
6587
6568
  }
@@ -6600,7 +6581,7 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
6600
6581
  }
6601
6582
  }]);
6602
6583
  return DomWrapper;
6603
- }(React$1.Component);
6584
+ }(React.Component);
6604
6585
 
6605
6586
  /**
6606
6587
  * Same as React.useState but will always get latest state.
@@ -6608,12 +6589,12 @@ var DomWrapper = /*#__PURE__*/function (_React$Component) {
6608
6589
  * e.g. onTransitionEnd trigger multiple event at once will be merged state update in React.
6609
6590
  */
6610
6591
  function useSyncState(defaultValue) {
6611
- var _React$useReducer = React$1.useReducer(function (x) {
6592
+ var _React$useReducer = React.useReducer(function (x) {
6612
6593
  return x + 1;
6613
6594
  }, 0),
6614
6595
  _React$useReducer2 = _slicedToArray(_React$useReducer, 2),
6615
6596
  forceUpdate = _React$useReducer2[1];
6616
- var currentValueRef = React$1.useRef(defaultValue);
6597
+ var currentValueRef = React.useRef(defaultValue);
6617
6598
  var getValue = useEvent(function () {
6618
6599
  return currentValueRef.current;
6619
6600
  });
@@ -6732,7 +6713,7 @@ var useDomMotionEvents = (function (onInternalMotionEnd) {
6732
6713
  }
6733
6714
 
6734
6715
  // Clean up when removed
6735
- React$1.useEffect(function () {
6716
+ React.useEffect(function () {
6736
6717
  return function () {
6737
6718
  removeMotionEvents(cacheElementRef.current);
6738
6719
  };
@@ -6744,7 +6725,7 @@ var useDomMotionEvents = (function (onInternalMotionEnd) {
6744
6725
  var useIsomorphicLayoutEffect = canUseDom() ? useLayoutEffect$1 : useEffect;
6745
6726
 
6746
6727
  var useNextFrame = (function () {
6747
- var nextFrameRef = React$1.useRef(null);
6728
+ var nextFrameRef = React.useRef(null);
6748
6729
  function cancelNextFrame() {
6749
6730
  wrapperRaf.cancel(nextFrameRef.current);
6750
6731
  }
@@ -6764,7 +6745,7 @@ var useNextFrame = (function () {
6764
6745
  });
6765
6746
  nextFrameRef.current = nextFrameId;
6766
6747
  }
6767
- React$1.useEffect(function () {
6748
+ React.useEffect(function () {
6768
6749
  return function () {
6769
6750
  cancelNextFrame();
6770
6751
  };
@@ -6821,7 +6802,7 @@ var useStepQueue = (function (status, prepareOnly, callback) {
6821
6802
  }
6822
6803
  }
6823
6804
  }, [status, step]);
6824
- React$1.useEffect(function () {
6805
+ React.useEffect(function () {
6825
6806
  return function () {
6826
6807
  cancelNextFrame();
6827
6808
  };
@@ -6929,7 +6910,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
6929
6910
  return {};
6930
6911
  }
6931
6912
  };
6932
- var eventHandlers = React$1.useMemo(function () {
6913
+ var eventHandlers = React.useMemo(function () {
6933
6914
  return getEventHandlers(currentStatus);
6934
6915
  }, [currentStatus]);
6935
6916
  var _useStepQueue = useStepQueue(currentStatus, !supportMotion, function (newStep) {
@@ -7030,7 +7011,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
7030
7011
  }, []);
7031
7012
 
7032
7013
  // Trigger `onVisibleChanged`
7033
- var firstMountChangeRef = React$1.useRef(false);
7014
+ var firstMountChangeRef = React.useRef(false);
7034
7015
  useEffect(function () {
7035
7016
  // [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged
7036
7017
  if (asyncVisible) {
@@ -7067,7 +7048,7 @@ function genCSSMotion(config) {
7067
7048
  function isSupportTransition(props, contextMotion) {
7068
7049
  return !!(props.motionName && transitionSupport && contextMotion !== false);
7069
7050
  }
7070
- var CSSMotion = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
7051
+ var CSSMotion = /*#__PURE__*/React.forwardRef(function (props, ref) {
7071
7052
  var _props$visible = props.visible,
7072
7053
  visible = _props$visible === void 0 ? true : _props$visible,
7073
7054
  _props$removeOnLeave = props.removeOnLeave,
@@ -7077,7 +7058,7 @@ function genCSSMotion(config) {
7077
7058
  motionName = props.motionName,
7078
7059
  leavedClassName = props.leavedClassName,
7079
7060
  eventProps = props.eventProps;
7080
- var _React$useContext = React$1.useContext(Context),
7061
+ var _React$useContext = React.useContext(Context),
7081
7062
  contextMotion = _React$useContext.motion;
7082
7063
  var supportMotion = isSupportTransition(props, contextMotion);
7083
7064
 
@@ -7106,13 +7087,13 @@ function genCSSMotion(config) {
7106
7087
 
7107
7088
  // Record whether content has rendered
7108
7089
  // Will return null for un-rendered even when `removeOnLeave={false}`
7109
- var renderedRef = React$1.useRef(mergedVisible);
7090
+ var renderedRef = React.useRef(mergedVisible);
7110
7091
  if (mergedVisible) {
7111
7092
  renderedRef.current = true;
7112
7093
  }
7113
7094
 
7114
7095
  // ====================== Refs ======================
7115
- var setNodeRef = React$1.useCallback(function (node) {
7096
+ var setNodeRef = React.useCallback(function (node) {
7116
7097
  nodeRef.current = node;
7117
7098
  fillRef(ref, node);
7118
7099
  }, [ref]);
@@ -7160,16 +7141,16 @@ function genCSSMotion(config) {
7160
7141
  }
7161
7142
 
7162
7143
  // Auto inject ref if child node not have `ref` props
7163
- if ( /*#__PURE__*/React$1.isValidElement(motionChildren) && supportRef(motionChildren)) {
7144
+ if ( /*#__PURE__*/React.isValidElement(motionChildren) && supportRef(motionChildren)) {
7164
7145
  var _ref = motionChildren,
7165
7146
  originNodeRef = _ref.ref;
7166
7147
  if (!originNodeRef) {
7167
- motionChildren = /*#__PURE__*/React$1.cloneElement(motionChildren, {
7148
+ motionChildren = /*#__PURE__*/React.cloneElement(motionChildren, {
7168
7149
  ref: setNodeRef
7169
7150
  });
7170
7151
  }
7171
7152
  }
7172
- return /*#__PURE__*/React$1.createElement(DomWrapper, {
7153
+ return /*#__PURE__*/React.createElement(DomWrapper, {
7173
7154
  ref: wrapperNodeRef
7174
7155
  }, motionChildren);
7175
7156
  });
@@ -7333,18 +7314,18 @@ function genCSSMotionList(transitionSupport) {
7333
7314
  _onVisibleChanged = _this$props.onVisibleChanged,
7334
7315
  onAllRemoved = _this$props.onAllRemoved,
7335
7316
  restProps = _objectWithoutProperties(_this$props, _excluded$2);
7336
- var Component = component || React$1.Fragment;
7317
+ var Component = component || React.Fragment;
7337
7318
  var motionProps = {};
7338
7319
  MOTION_PROP_NAMES.forEach(function (prop) {
7339
7320
  motionProps[prop] = restProps[prop];
7340
7321
  delete restProps[prop];
7341
7322
  });
7342
7323
  delete restProps.keys;
7343
- return /*#__PURE__*/React$1.createElement(Component, restProps, keyEntities.map(function (_ref2, index) {
7324
+ return /*#__PURE__*/React.createElement(Component, restProps, keyEntities.map(function (_ref2, index) {
7344
7325
  var status = _ref2.status,
7345
7326
  eventProps = _objectWithoutProperties(_ref2, _excluded2);
7346
7327
  var visible = status === STATUS_ADD || status === STATUS_KEEP;
7347
- return /*#__PURE__*/React$1.createElement(CSSMotion$1, _extends({}, motionProps, {
7328
+ return /*#__PURE__*/React.createElement(CSSMotion$1, _extends({}, motionProps, {
7348
7329
  key: eventProps.key,
7349
7330
  visible: visible,
7350
7331
  eventProps: eventProps,
@@ -7390,7 +7371,7 @@ function genCSSMotionList(transitionSupport) {
7390
7371
  }
7391
7372
  }]);
7392
7373
  return CSSMotionList;
7393
- }(React$1.Component);
7374
+ }(React.Component);
7394
7375
  _defineProperty(CSSMotionList, "defaultProps", {
7395
7376
  component: 'div'
7396
7377
  });
@@ -7406,10 +7387,10 @@ function MotionWrapper(props) {
7406
7387
  const {
7407
7388
  motion
7408
7389
  } = token;
7409
- const needWrapMotionProviderRef = React$1.useRef(false);
7390
+ const needWrapMotionProviderRef = React.useRef(false);
7410
7391
  needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;
7411
7392
  if (needWrapMotionProviderRef.current) {
7412
- return /*#__PURE__*/React$1.createElement(MotionProvider, {
7393
+ return /*#__PURE__*/React.createElement(MotionProvider, {
7413
7394
  motion: motion
7414
7395
  }, children);
7415
7396
  }
@@ -7420,7 +7401,7 @@ function MotionWrapper(props) {
7420
7401
  * Warning for ConfigProviderProps.
7421
7402
  * This will be empty function in production.
7422
7403
  */
7423
- const PropWarning = /*#__PURE__*/React$1.memo(_ref => {
7404
+ const PropWarning = /*#__PURE__*/React.memo(_ref => {
7424
7405
  let {
7425
7406
  dropdownMatchSelectWidth
7426
7407
  } = _ref;
@@ -7555,7 +7536,7 @@ const ProviderChildren = props => {
7555
7536
  treeSelect
7556
7537
  } = props;
7557
7538
  // =================================== Context ===================================
7558
- const getPrefixCls = React$1.useCallback((suffixCls, customizePrefixCls) => {
7539
+ const getPrefixCls = React.useCallback((suffixCls, customizePrefixCls) => {
7559
7540
  const {
7560
7541
  prefixCls
7561
7542
  } = props;
@@ -7567,7 +7548,7 @@ const ProviderChildren = props => {
7567
7548
  }, [parentContext.getPrefixCls, props.prefixCls]);
7568
7549
  const iconPrefixCls = customIconPrefixCls || parentContext.iconPrefixCls || defaultIconPrefixCls;
7569
7550
  const csp = customCsp || parentContext.csp;
7570
- useStyle$2(iconPrefixCls, csp);
7551
+ useResetIconStyle(iconPrefixCls, csp);
7571
7552
  const mergedTheme = useTheme(theme, parentContext.theme, {
7572
7553
  prefixCls: getPrefixCls('')
7573
7554
  });
@@ -7675,42 +7656,42 @@ const ProviderChildren = props => {
7675
7656
  const currentKeys = Object.keys(currentConfig);
7676
7657
  return prevKeys.length !== currentKeys.length || prevKeys.some(key => prevConfig[key] !== currentConfig[key]);
7677
7658
  });
7678
- const memoIconContextValue = React$1.useMemo(() => ({
7659
+ const memoIconContextValue = React.useMemo(() => ({
7679
7660
  prefixCls: iconPrefixCls,
7680
7661
  csp
7681
7662
  }), [iconPrefixCls, csp]);
7682
- let childNode = /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(PropWarning$1, {
7663
+ let childNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PropWarning$1, {
7683
7664
  dropdownMatchSelectWidth: dropdownMatchSelectWidth
7684
7665
  }), children);
7685
- const validateMessages = React$1.useMemo(() => {
7666
+ const validateMessages = React.useMemo(() => {
7686
7667
  var _a, _b, _c, _d;
7687
- return merge$1(((_a = defaultLocale.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || {}, ((_c = (_b = memoedConfig.locale) === null || _b === void 0 ? void 0 : _b.Form) === null || _c === void 0 ? void 0 : _c.defaultValidateMessages) || {}, ((_d = memoedConfig.form) === null || _d === void 0 ? void 0 : _d.validateMessages) || {}, (form === null || form === void 0 ? void 0 : form.validateMessages) || {});
7668
+ return merge$1(((_a = localeValues.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || {}, ((_c = (_b = memoedConfig.locale) === null || _b === void 0 ? void 0 : _b.Form) === null || _c === void 0 ? void 0 : _c.defaultValidateMessages) || {}, ((_d = memoedConfig.form) === null || _d === void 0 ? void 0 : _d.validateMessages) || {}, (form === null || form === void 0 ? void 0 : form.validateMessages) || {});
7688
7669
  }, [memoedConfig, form === null || form === void 0 ? void 0 : form.validateMessages]);
7689
7670
  if (Object.keys(validateMessages).length > 0) {
7690
- childNode = /*#__PURE__*/React$1.createElement(ValidateMessagesContext.Provider, {
7671
+ childNode = /*#__PURE__*/React.createElement(ValidateMessagesContext.Provider, {
7691
7672
  value: validateMessages
7692
7673
  }, childNode);
7693
7674
  }
7694
7675
  if (locale) {
7695
- childNode = /*#__PURE__*/React$1.createElement(LocaleProvider$1, {
7676
+ childNode = /*#__PURE__*/React.createElement(LocaleProvider, {
7696
7677
  locale: locale,
7697
7678
  _ANT_MARK__: ANT_MARK
7698
7679
  }, childNode);
7699
7680
  }
7700
7681
  if (iconPrefixCls || csp) {
7701
- childNode = /*#__PURE__*/React$1.createElement(Context$1.Provider, {
7682
+ childNode = /*#__PURE__*/React.createElement(IconContext.Provider, {
7702
7683
  value: memoIconContextValue
7703
7684
  }, childNode);
7704
7685
  }
7705
7686
  if (componentSize) {
7706
- childNode = /*#__PURE__*/React$1.createElement(SizeContextProvider, {
7687
+ childNode = /*#__PURE__*/React.createElement(SizeContextProvider, {
7707
7688
  size: componentSize
7708
7689
  }, childNode);
7709
7690
  }
7710
7691
  // =================================== Motion ===================================
7711
- childNode = /*#__PURE__*/React$1.createElement(MotionWrapper, null, childNode);
7692
+ childNode = /*#__PURE__*/React.createElement(MotionWrapper, null, childNode);
7712
7693
  // ================================ Dynamic theme ================================
7713
- const memoTheme = React$1.useMemo(() => {
7694
+ const memoTheme = React.useMemo(() => {
7714
7695
  const _a = mergedTheme || {},
7715
7696
  {
7716
7697
  algorithm,
@@ -7734,7 +7715,7 @@ const ProviderChildren = props => {
7734
7715
  }
7735
7716
  parsedComponents[componentName] = parsedToken;
7736
7717
  });
7737
- const mergedToken = Object.assign(Object.assign({}, seedToken$1), token);
7718
+ const mergedToken = Object.assign(Object.assign({}, seedToken), token);
7738
7719
  return Object.assign(Object.assign({}, rest), {
7739
7720
  theme: themeObj,
7740
7721
  token: mergedToken,
@@ -7746,42 +7727,42 @@ const ProviderChildren = props => {
7746
7727
  });
7747
7728
  }, [mergedTheme]);
7748
7729
  if (theme) {
7749
- childNode = /*#__PURE__*/React$1.createElement(DesignTokenContext.Provider, {
7730
+ childNode = /*#__PURE__*/React.createElement(DesignTokenContext.Provider, {
7750
7731
  value: memoTheme
7751
7732
  }, childNode);
7752
7733
  }
7753
7734
  // ================================== Warning ===================================
7754
7735
  if (memoedConfig.warning) {
7755
- childNode = /*#__PURE__*/React$1.createElement(WarningContext.Provider, {
7736
+ childNode = /*#__PURE__*/React.createElement(WarningContext.Provider, {
7756
7737
  value: memoedConfig.warning
7757
7738
  }, childNode);
7758
7739
  }
7759
7740
  // =================================== Render ===================================
7760
7741
  if (componentDisabled !== undefined) {
7761
- childNode = /*#__PURE__*/React$1.createElement(DisabledContextProvider, {
7742
+ childNode = /*#__PURE__*/React.createElement(DisabledContextProvider, {
7762
7743
  disabled: componentDisabled
7763
7744
  }, childNode);
7764
7745
  }
7765
- return /*#__PURE__*/React$1.createElement(ConfigContext.Provider, {
7746
+ return /*#__PURE__*/React.createElement(ConfigContext.Provider, {
7766
7747
  value: memoedConfig
7767
7748
  }, childNode);
7768
7749
  };
7769
7750
  const ConfigProvider = props => {
7770
- const context = React$1.useContext(ConfigContext);
7771
- const antLocale = React$1.useContext(LocaleContext$1);
7772
- return /*#__PURE__*/React$1.createElement(ProviderChildren, Object.assign({
7751
+ const context = React.useContext(ConfigContext);
7752
+ const antLocale = React.useContext(LocaleContext);
7753
+ return /*#__PURE__*/React.createElement(ProviderChildren, Object.assign({
7773
7754
  parentContext: context,
7774
7755
  legacyLocale: antLocale
7775
7756
  }, props));
7776
7757
  };
7777
7758
  ConfigProvider.ConfigContext = ConfigContext;
7778
- ConfigProvider.SizeContext = SizeContext$1;
7759
+ ConfigProvider.SizeContext = SizeContext;
7779
7760
  ConfigProvider.config = setGlobalConfig;
7780
7761
  ConfigProvider.useConfig = useConfig;
7781
7762
  Object.defineProperty(ConfigProvider, 'SizeContext', {
7782
7763
  get: () => {
7783
7764
  process.env.NODE_ENV !== "production" ? warning$2(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;
7784
- return SizeContext$1;
7765
+ return SizeContext;
7785
7766
  }
7786
7767
  });
7787
7768
  if (process.env.NODE_ENV !== 'production') {
@@ -7860,7 +7841,7 @@ function normalizeTwoToneColors(twoToneColor) {
7860
7841
  }
7861
7842
  var iconStyles = "\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
7862
7843
  var useInsertStyles = function useInsertStyles(eleRef) {
7863
- var _useContext = useContext(Context$1),
7844
+ var _useContext = useContext(IconContext),
7864
7845
  csp = _useContext.csp,
7865
7846
  prefixCls = _useContext.prefixCls;
7866
7847
  var mergedStyleStr = iconStyles;
@@ -7902,7 +7883,7 @@ var IconBase = function IconBase(props) {
7902
7883
  primaryColor = props.primaryColor,
7903
7884
  secondaryColor = props.secondaryColor,
7904
7885
  restProps = _objectWithoutProperties(props, _excluded$1);
7905
- var svgRef = React$1.useRef();
7886
+ var svgRef = React.useRef();
7906
7887
  var colors = twoToneColorPalette;
7907
7888
  if (primaryColor) {
7908
7889
  colors = {
@@ -7937,20 +7918,19 @@ var IconBase = function IconBase(props) {
7937
7918
  IconBase.displayName = 'IconReact';
7938
7919
  IconBase.getTwoToneColors = getTwoToneColors;
7939
7920
  IconBase.setTwoToneColors = setTwoToneColors;
7940
- var ReactIcon = IconBase;
7941
7921
 
7942
7922
  function setTwoToneColor(twoToneColor) {
7943
7923
  var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
7944
7924
  _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),
7945
7925
  primaryColor = _normalizeTwoToneColo2[0],
7946
7926
  secondaryColor = _normalizeTwoToneColo2[1];
7947
- return ReactIcon.setTwoToneColors({
7927
+ return IconBase.setTwoToneColors({
7948
7928
  primaryColor: primaryColor,
7949
7929
  secondaryColor: secondaryColor
7950
7930
  });
7951
7931
  }
7952
7932
  function getTwoToneColor() {
7953
- var colors = ReactIcon.getTwoToneColors();
7933
+ var colors = IconBase.getTwoToneColors();
7954
7934
  if (!colors.calculated) {
7955
7935
  return colors.primaryColor;
7956
7936
  }
@@ -7964,7 +7944,7 @@ setTwoToneColor(blue.primary);
7964
7944
 
7965
7945
  // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720
7966
7946
 
7967
- var Icon = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
7947
+ var Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {
7968
7948
  var className = props.className,
7969
7949
  icon = props.icon,
7970
7950
  spin = props.spin,
@@ -7973,7 +7953,7 @@ var Icon = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
7973
7953
  onClick = props.onClick,
7974
7954
  twoToneColor = props.twoToneColor,
7975
7955
  restProps = _objectWithoutProperties(props, _excluded);
7976
- var _React$useContext = React$1.useContext(Context$1),
7956
+ var _React$useContext = React.useContext(IconContext),
7977
7957
  _React$useContext$pre = _React$useContext.prefixCls,
7978
7958
  prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
7979
7959
  rootClassName = _React$useContext.rootClassName;
@@ -7990,7 +7970,7 @@ var Icon = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
7990
7970
  _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),
7991
7971
  primaryColor = _normalizeTwoToneColo2[0],
7992
7972
  secondaryColor = _normalizeTwoToneColo2[1];
7993
- return /*#__PURE__*/React$1.createElement("span", _extends({
7973
+ return /*#__PURE__*/React.createElement("span", _extends({
7994
7974
  role: "img",
7995
7975
  "aria-label": icon.name
7996
7976
  }, restProps, {
@@ -7998,7 +7978,7 @@ var Icon = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
7998
7978
  tabIndex: iconTabIndex,
7999
7979
  onClick: onClick,
8000
7980
  className: classString
8001
- }), /*#__PURE__*/React$1.createElement(ReactIcon, {
7981
+ }), /*#__PURE__*/React.createElement(IconBase, {
8002
7982
  icon: icon,
8003
7983
  primaryColor: primaryColor,
8004
7984
  secondaryColor: secondaryColor,
@@ -8008,7 +7988,6 @@ var Icon = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
8008
7988
  Icon.displayName = 'AntdIcon';
8009
7989
  Icon.getTwoToneColor = getTwoToneColor;
8010
7990
  Icon.setTwoToneColor = setTwoToneColor;
8011
- var AntdIcon = Icon;
8012
7991
 
8013
7992
  function isFragment(child) {
8014
7993
  return child && /*#__PURE__*/React__default.isValidElement(child) && child.type === React__default.Fragment;
@@ -8024,22 +8003,20 @@ function cloneElement(element, props) {
8024
8003
  }
8025
8004
 
8026
8005
  // This icon file is generated automatically.
8027
- var LoadingOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
8028
- var LoadingOutlinedSvg = LoadingOutlined$2;
8006
+ var LoadingOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, "name": "loading", "theme": "outlined" };
8029
8007
 
8030
8008
  var LoadingOutlined = function LoadingOutlined(props, ref) {
8031
- return /*#__PURE__*/React$1.createElement(AntdIcon, _extends({}, props, {
8009
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
8032
8010
  ref: ref,
8033
- icon: LoadingOutlinedSvg
8011
+ icon: LoadingOutlined$1
8034
8012
  }));
8035
8013
  };
8036
8014
 
8037
8015
  /**![loading](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk4OCA1NDhjLTE5LjkgMC0zNi0xNi4xLTM2LTM2IDAtNTkuNC0xMS42LTExNy0zNC42LTE3MS4zYTQ0MC40NSA0NDAuNDUgMCAwMC05NC4zLTEzOS45IDQzNy43MSA0MzcuNzEgMCAwMC0xMzkuOS05NC4zQzYyOSA4My42IDU3MS40IDcyIDUxMiA3MmMtMTkuOSAwLTM2LTE2LjEtMzYtMzZzMTYuMS0zNiAzNi0zNmM2OS4xIDAgMTM2LjIgMTMuNSAxOTkuMyA0MC4zQzc3Mi4zIDY2IDgyNyAxMDMgODc0IDE1MGM0NyA0NyA4My45IDEwMS44IDEwOS43IDE2Mi43IDI2LjcgNjMuMSA0MC4yIDEzMC4yIDQwLjIgMTk5LjMuMSAxOS45LTE2IDM2LTM1LjkgMzZ6IiAvPjwvc3ZnPg==) */
8038
- var RefIcon = /*#__PURE__*/React$1.forwardRef(LoadingOutlined);
8016
+ var RefIcon = /*#__PURE__*/React.forwardRef(LoadingOutlined);
8039
8017
  if (process.env.NODE_ENV !== 'production') {
8040
8018
  RefIcon.displayName = 'LoadingOutlined';
8041
8019
  }
8042
- var LoadingOutlined$1 = RefIcon;
8043
8020
 
8044
8021
  function _regeneratorRuntime() {
8045
8022
  _regeneratorRuntime = function _regeneratorRuntime() {
@@ -8561,14 +8538,14 @@ const WaveEffect = props => {
8561
8538
  target,
8562
8539
  component
8563
8540
  } = props;
8564
- const divRef = React$1.useRef(null);
8565
- const [color, setWaveColor] = React$1.useState(null);
8566
- const [borderRadius, setBorderRadius] = React$1.useState([]);
8567
- const [left, setLeft] = React$1.useState(0);
8568
- const [top, setTop] = React$1.useState(0);
8569
- const [width, setWidth] = React$1.useState(0);
8570
- const [height, setHeight] = React$1.useState(0);
8571
- const [enabled, setEnabled] = React$1.useState(false);
8541
+ const divRef = React.useRef(null);
8542
+ const [color, setWaveColor] = React.useState(null);
8543
+ const [borderRadius, setBorderRadius] = React.useState([]);
8544
+ const [left, setLeft] = React.useState(0);
8545
+ const [top, setTop] = React.useState(0);
8546
+ const [width, setWidth] = React.useState(0);
8547
+ const [height, setHeight] = React.useState(0);
8548
+ const [enabled, setEnabled] = React.useState(false);
8572
8549
  const waveStyle = {
8573
8550
  left,
8574
8551
  top,
@@ -8602,7 +8579,7 @@ const WaveEffect = props => {
8602
8579
  } = nodeStyle;
8603
8580
  setBorderRadius([borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius].map(radius => validateNum(parseFloat(radius))));
8604
8581
  }
8605
- React$1.useEffect(() => {
8582
+ React.useEffect(() => {
8606
8583
  if (target) {
8607
8584
  // We need delay to check position here
8608
8585
  // since UI may change after click
@@ -8626,7 +8603,7 @@ const WaveEffect = props => {
8626
8603
  return null;
8627
8604
  }
8628
8605
  const isSmallComponent = (component === 'Checkbox' || component === 'Radio') && (target === null || target === void 0 ? void 0 : target.classList.contains(TARGET_CLS));
8629
- return /*#__PURE__*/React$1.createElement(CSSMotion, {
8606
+ return /*#__PURE__*/React.createElement(CSSMotion, {
8630
8607
  visible: true,
8631
8608
  motionAppear: true,
8632
8609
  motionName: "wave-motion",
@@ -8645,7 +8622,7 @@ const WaveEffect = props => {
8645
8622
  let {
8646
8623
  className: motionClassName
8647
8624
  } = _ref;
8648
- return /*#__PURE__*/React$1.createElement("div", {
8625
+ return /*#__PURE__*/React.createElement("div", {
8649
8626
  ref: composeRef(divRef, ref),
8650
8627
  className: classNames(className, motionClassName, {
8651
8628
  'wave-quick': isSmallComponent
@@ -8669,16 +8646,15 @@ const showWaveEffect = (target, info) => {
8669
8646
  holder.style.left = '0px';
8670
8647
  holder.style.top = '0px';
8671
8648
  target === null || target === void 0 ? void 0 : target.insertBefore(holder, target === null || target === void 0 ? void 0 : target.firstChild);
8672
- render(/*#__PURE__*/React$1.createElement(WaveEffect, Object.assign({}, info, {
8649
+ render(/*#__PURE__*/React.createElement(WaveEffect, Object.assign({}, info, {
8673
8650
  target: target
8674
8651
  })), holder);
8675
8652
  };
8676
- var showWaveEffect$1 = showWaveEffect;
8677
8653
 
8678
8654
  const useWave = (nodeRef, className, component) => {
8679
8655
  const {
8680
8656
  wave
8681
- } = React$1.useContext(ConfigContext);
8657
+ } = React.useContext(ConfigContext);
8682
8658
  const [, token, hashId] = useToken();
8683
8659
  const showWave = useEvent(event => {
8684
8660
  const node = nodeRef.current;
@@ -8690,7 +8666,7 @@ const useWave = (nodeRef, className, component) => {
8690
8666
  showEffect
8691
8667
  } = wave || {};
8692
8668
  // Customize wave effect
8693
- (showEffect || showWaveEffect$1)(targetNode, {
8669
+ (showEffect || showWaveEffect)(targetNode, {
8694
8670
  className,
8695
8671
  token,
8696
8672
  component,
@@ -8698,7 +8674,7 @@ const useWave = (nodeRef, className, component) => {
8698
8674
  hashId
8699
8675
  });
8700
8676
  });
8701
- const rafId = React$1.useRef();
8677
+ const rafId = React.useRef();
8702
8678
  // Merge trigger event into one for each frame
8703
8679
  const showDebounceWave = event => {
8704
8680
  wrapperRaf.cancel(rafId.current);
@@ -8708,7 +8684,6 @@ const useWave = (nodeRef, className, component) => {
8708
8684
  };
8709
8685
  return showDebounceWave;
8710
8686
  };
8711
- var useWave$1 = useWave;
8712
8687
 
8713
8688
  const Wave = props => {
8714
8689
  const {
@@ -8724,7 +8699,7 @@ const Wave = props => {
8724
8699
  const prefixCls = getPrefixCls('wave');
8725
8700
  const [, hashId] = useStyle$1(prefixCls);
8726
8701
  // =============================== Wave ===============================
8727
- const showWave = useWave$1(containerRef, classNames(prefixCls, hashId), component);
8702
+ const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);
8728
8703
  // ============================== Effect ==============================
8729
8704
  React__default.useEffect(() => {
8730
8705
  const node = containerRef.current;
@@ -8759,10 +8734,9 @@ const Wave = props => {
8759
8734
  if (process.env.NODE_ENV !== 'production') {
8760
8735
  Wave.displayName = 'Wave';
8761
8736
  }
8762
- var Wave$1 = Wave;
8763
8737
 
8764
8738
  const useSize = customSize => {
8765
- const size = React__default.useContext(SizeContext$1);
8739
+ const size = React__default.useContext(SizeContext);
8766
8740
  const mergedSize = React__default.useMemo(() => {
8767
8741
  if (!customSize) {
8768
8742
  return size;
@@ -8777,7 +8751,6 @@ const useSize = customSize => {
8777
8751
  }, [customSize, size]);
8778
8752
  return mergedSize;
8779
8753
  };
8780
- var useSize$1 = useSize;
8781
8754
 
8782
8755
  undefined && undefined.__rest || function (s, e) {
8783
8756
  var t = {};
@@ -8787,10 +8760,10 @@ undefined && undefined.__rest || function (s, e) {
8787
8760
  }
8788
8761
  return t;
8789
8762
  };
8790
- const SpaceCompactItemContext = /*#__PURE__*/React$1.createContext(null);
8763
+ const SpaceCompactItemContext = /*#__PURE__*/React.createContext(null);
8791
8764
  const useCompactItemContext = (prefixCls, direction) => {
8792
- const compactItemContext = React$1.useContext(SpaceCompactItemContext);
8793
- const compactItemClassnames = React$1.useMemo(() => {
8765
+ const compactItemContext = React.useContext(SpaceCompactItemContext);
8766
+ const compactItemClassnames = React.useMemo(() => {
8794
8767
  if (!compactItemContext) {
8795
8768
  return '';
8796
8769
  }
@@ -8821,12 +8794,12 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
8821
8794
  }
8822
8795
  return t;
8823
8796
  };
8824
- const GroupSizeContext = /*#__PURE__*/React$1.createContext(undefined);
8797
+ const GroupSizeContext = /*#__PURE__*/React.createContext(undefined);
8825
8798
  const ButtonGroup = props => {
8826
8799
  const {
8827
8800
  getPrefixCls,
8828
8801
  direction
8829
- } = React$1.useContext(ConfigContext);
8802
+ } = React.useContext(ConfigContext);
8830
8803
  const {
8831
8804
  prefixCls: customizePrefixCls,
8832
8805
  size,
@@ -8853,13 +8826,12 @@ const ButtonGroup = props => {
8853
8826
  [`${prefixCls}-${sizeCls}`]: sizeCls,
8854
8827
  [`${prefixCls}-rtl`]: direction === 'rtl'
8855
8828
  }, className, hashId);
8856
- return /*#__PURE__*/React$1.createElement(GroupSizeContext.Provider, {
8829
+ return /*#__PURE__*/React.createElement(GroupSizeContext.Provider, {
8857
8830
  value: size
8858
- }, /*#__PURE__*/React$1.createElement("div", Object.assign({}, others, {
8831
+ }, /*#__PURE__*/React.createElement("div", Object.assign({}, others, {
8859
8832
  className: classes
8860
8833
  })));
8861
8834
  };
8862
- var Group = ButtonGroup;
8863
8835
 
8864
8836
  const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
8865
8837
  const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
@@ -8919,7 +8891,6 @@ const IconWrapper = /*#__PURE__*/forwardRef((props, ref) => {
8919
8891
  style: style
8920
8892
  }, children);
8921
8893
  });
8922
- var IconWrapper$1 = IconWrapper;
8923
8894
 
8924
8895
  const InnerLoadingIcon = /*#__PURE__*/forwardRef((props, ref) => {
8925
8896
  const {
@@ -8929,12 +8900,12 @@ const InnerLoadingIcon = /*#__PURE__*/forwardRef((props, ref) => {
8929
8900
  iconClassName
8930
8901
  } = props;
8931
8902
  const mergedIconCls = classNames(`${prefixCls}-loading-icon`, className);
8932
- return /*#__PURE__*/React__default.createElement(IconWrapper$1, {
8903
+ return /*#__PURE__*/React__default.createElement(IconWrapper, {
8933
8904
  prefixCls: prefixCls,
8934
8905
  className: mergedIconCls,
8935
8906
  style: style,
8936
8907
  ref: ref
8937
- }, /*#__PURE__*/React__default.createElement(LoadingOutlined$1, {
8908
+ }, /*#__PURE__*/React__default.createElement(RefIcon, {
8938
8909
  className: iconClassName
8939
8910
  }));
8940
8911
  });
@@ -8990,7 +8961,6 @@ const LoadingIcon = props => {
8990
8961
  });
8991
8962
  });
8992
8963
  };
8993
- var LoadingIcon$1 = LoadingIcon;
8994
8964
 
8995
8965
  const genButtonBorderStyle = (buttonTypeCls, borderColor) => ({
8996
8966
  // Border
@@ -9057,7 +9027,6 @@ const genGroupStyle = token => {
9057
9027
  genButtonBorderStyle(`${componentCls}-primary`, groupBorderColor), genButtonBorderStyle(`${componentCls}-danger`, colorErrorHover)]
9058
9028
  };
9059
9029
  };
9060
- var genGroupStyle$1 = genGroupStyle;
9061
9030
 
9062
9031
  const prepareToken = token => {
9063
9032
  const {
@@ -9450,7 +9419,7 @@ var useStyle = genStyleHooks('Button', token => {
9450
9419
  // Group (type, ghost, danger, loading)
9451
9420
  genTypeButtonStyle(buttonToken),
9452
9421
  // Button Group
9453
- genGroupStyle$1(buttonToken)];
9422
+ genGroupStyle(buttonToken)];
9454
9423
  }, prepareComponentToken, {
9455
9424
  unitless: {
9456
9425
  fontWeight: true,
@@ -9678,7 +9647,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
9678
9647
  const mergedInsertSpace = (_a = autoInsertSpace !== null && autoInsertSpace !== void 0 ? autoInsertSpace : button === null || button === void 0 ? void 0 : button.autoInsertSpace) !== null && _a !== void 0 ? _a : true;
9679
9648
  const prefixCls = getPrefixCls('btn', customizePrefixCls);
9680
9649
  const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);
9681
- const disabled = useContext(DisabledContext$1);
9650
+ const disabled = useContext(DisabledContext);
9682
9651
  const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
9683
9652
  const groupSize = useContext(GroupSizeContext);
9684
9653
  const loadingOrDelay = useMemo$1(() => getLoadingConfig(loading), [loading]);
@@ -9744,7 +9713,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
9744
9713
  small: 'sm',
9745
9714
  middle: undefined
9746
9715
  };
9747
- const sizeFullName = useSize$1(ctxSize => {
9716
+ const sizeFullName = useSize(ctxSize => {
9748
9717
  var _a, _b;
9749
9718
  return (_b = (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : groupSize) !== null && _b !== void 0 ? _b : ctxSize;
9750
9719
  });
@@ -9767,11 +9736,11 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
9767
9736
  const fullStyle = Object.assign(Object.assign({}, button === null || button === void 0 ? void 0 : button.style), customStyle);
9768
9737
  const iconClasses = classNames(customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.icon, (_b = button === null || button === void 0 ? void 0 : button.classNames) === null || _b === void 0 ? void 0 : _b.icon);
9769
9738
  const iconStyle = Object.assign(Object.assign({}, (styles === null || styles === void 0 ? void 0 : styles.icon) || {}), ((_c = button === null || button === void 0 ? void 0 : button.styles) === null || _c === void 0 ? void 0 : _c.icon) || {});
9770
- const iconNode = icon && !innerLoading ? (/*#__PURE__*/React__default.createElement(IconWrapper$1, {
9739
+ const iconNode = icon && !innerLoading ? (/*#__PURE__*/React__default.createElement(IconWrapper, {
9771
9740
  prefixCls: prefixCls,
9772
9741
  className: iconClasses,
9773
9742
  style: iconStyle
9774
- }, icon)) : (/*#__PURE__*/React__default.createElement(LoadingIcon$1, {
9743
+ }, icon)) : (/*#__PURE__*/React__default.createElement(LoadingIcon, {
9775
9744
  existIcon: !!icon,
9776
9745
  prefixCls: prefixCls,
9777
9746
  loading: innerLoading
@@ -9801,7 +9770,7 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
9801
9770
  prefixCls: prefixCls
9802
9771
  }));
9803
9772
  if (!isUnBorderedButtonType(mergedType)) {
9804
- buttonNode = /*#__PURE__*/React__default.createElement(Wave$1, {
9773
+ buttonNode = /*#__PURE__*/React__default.createElement(Wave, {
9805
9774
  component: "Button",
9806
9775
  disabled: innerLoading
9807
9776
  }, buttonNode);
@@ -9809,16 +9778,15 @@ const InternalCompoundedButton = /*#__PURE__*/React__default.forwardRef((props,
9809
9778
  return wrapCSSVar(buttonNode);
9810
9779
  });
9811
9780
  const Button = InternalCompoundedButton;
9812
- Button.Group = Group;
9781
+ Button.Group = ButtonGroup;
9813
9782
  Button.__ANT_BUTTON = true;
9814
9783
  if (process.env.NODE_ENV !== 'production') {
9815
9784
  Button.displayName = 'Button';
9816
9785
  }
9817
- var Button$1 = Button;
9818
9786
 
9819
9787
  const FisButton = () => {
9820
- return React.createElement(Button$1, null, "Hello from my React component!");
9788
+ return jsx(Button, { children: "Hello from my React component!" });
9821
9789
  };
9822
9790
 
9823
- export { FisButton, MyComponent };
9791
+ export { FisButton };
9824
9792
  //# sourceMappingURL=index.js.map